package practicedemo58;

public class Student extends Person {
    private String id;

    public Student() {
    }

    public Student(String id) {
        this.id = id;
    }

    public void study(){
        System.out.println("我在学习");
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    public String toString() {
        return "Student{id = " + id + "}";
    }
}
